<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>话题推荐 - 社交平台</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #2563eb;
            --primary-light: #eff6ff;
            --primary-dark: #1d4ed8;
            --secondary: #64748b;
            --dark: #1e293b;
            --light: #f8fafc;
            --border: #e2e8f0;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            --card-shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.1);
        }
        
        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background-color: #f5f7fa;
            color: var(--dark);
            line-height: 1.6;
            padding-top: 20px;
            padding-bottom: 40px;
        }
        
        .container {
            max-width: 1200px;
        }
        
        .section-title {
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid var(--primary);
            display: inline-block;
        }
        
        /* 话题卡片通用样式 */
        .topic-card {
            background-color: white;
            border-radius: 8px;
            box-shadow: var(--card-shadow);
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
            margin-bottom: 1.5rem;
        }
        
        .topic-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--card-shadow-hover);
        }
        
        .topic-header {
            padding: 1rem 1.25rem;
            border-bottom: 1px solid var(--border);
        }
        
        .topic-body {
            padding: 1.25rem;
        }
        
        .topic-footer {
            padding: 0.75rem 1.25rem;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.9rem;
            color: var(--secondary);
        }
        
        .topic-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            line-height: 1.4;
            transition: color 0.2s;
        }
        
        .topic-title:hover {
            color: var(--primary);
        }
        
        .topic-content {
            color: var(--secondary);
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .topic-meta {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.85rem;
            color: var(--secondary);
            margin-bottom: 0.75rem;
        }
        
        .topic-author {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .author-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .author-name {
            font-weight: 500;
            color: var(--dark);
        }
        
        .topic-stats {
            display: flex;
            align-items: center;
            gap: 1.25rem;
        }
        
        .topic-stat {
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }
        
        .topic-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .topic-action {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            cursor: pointer;
            transition: color 0.2s;
        }
        
        .topic-action:hover {
            color: var(--primary);
        }
        
        .topic-action.liked {
            color: var(--primary);
        }
        
        .topic-action.saved {
            color: var(--primary);
        }
        
        /* 图片容器样式 */
        .topic-images {
            margin-bottom: 1rem;
            border-radius: 6px;
            overflow: hidden;
            position: relative;
        }
        
        .single-image {
            width: 100%;
            height: 180px;
            object-fit: cover;
            display: block;
        }
        
        .multi-image {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 4px;
        }
        
        .multi-image img {
            width: 100%;
            height: 90px;
            object-fit: cover;
        }
        
        .image-count-overlay {
            position: absolute;
            bottom: 4px;
            right: 4px;
            background-color: rgba(0, 0, 0, 0.6);
            color: white;
            font-size: 0.8rem;
            padding: 2px 6px;
            border-radius: 4px;
        }
        
        /* 布局1：标准卡片布局 */
        .layout-standard .topic-card {
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .layout-standard .topic-body {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .layout-standard .topic-content {
            flex-grow: 1;
        }
        
        /* 布局2：紧凑列表布局 */
        .layout-compact .topic-card {
            display: flex;
            flex-direction: row;
            height: 140px;
        }
        
        .layout-compact .topic-images {
            width: 140px;
            flex-shrink: 0;
            margin-bottom: 0;
        }
        
        .layout-compact .single-image {
            height: 100%;
        }
        
        .layout-compact .multi-image img {
            height: 50%;
        }
        
        .layout-compact .topic-content-container {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .layout-compact .topic-body {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            padding: 1rem;
        }
        
        .layout-compact .topic-footer {
            padding: 0.75rem 1rem;
            border-top: none;
        }
        
        /* 布局3：大图展示布局 */
        .layout-featured .topic-card {
            margin-bottom: 2rem;
        }
        
        .layout-featured .topic-images {
            margin-bottom: 1rem;
        }
        
        .layout-featured .single-image {
            height: 300px;
        }
        
        .layout-featured .topic-title {
            font-size: 1.5rem;
        }
        
        .layout-featured .topic-content {
            font-size: 1.05rem;
            -webkit-line-clamp: 3;
            margin-bottom: 1.25rem;
        }
        
        /* 布局4：网格布局 */
        .layout-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
        }
        
        .layout-grid .topic-card {
            margin-bottom: 0;
        }
        
        .layout-grid .topic-images {
            height: 160px;
            overflow: hidden;
        }
        
        .layout-grid .single-image {
            height: 100%;
        }
        
        .layout-grid .multi-image img {
            height: 50%;
        }
        
        /* 分类标签 */
        .topic-category {
            display: inline-block;
            padding: 0.25rem 0.65rem;
            background-color: var(--primary-light);
            color: var(--primary);
            border-radius: 4px;
            font-size: 0.75rem;
            margin-right: 0.5rem;
        }
        
        /* 响应式调整 */
        @media (max-width: 992px) {
            .layout-compact .topic-card {
                flex-direction: column;
                height: auto;
            }
            
            .layout-compact .topic-images {
                width: 100%;
                height: 180px;
            }
        }
        
        @media (max-width: 768px) {
            .section-title {
                font-size: 1.5rem;
            }
            
            .topic-stats {
                gap: 0.75rem;
                flex-wrap: wrap;
            }
            
            .layout-featured .single-image {
                height: 200px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- 特色话题区（大图布局） -->
        <section class="mb-8">
            <h2 class="section-title">特色话题</h2>
            <div class="layout-featured">
                <!-- 带多图的特色话题 -->
                <div class="topic-card">
                    <div class="topic-images">
                        <div class="multi-image">
                            <img src="https://picsum.photos/400/300?random=1" alt="科技展览现场照片1" class="img-fluid">
                            <img src="https://picsum.photos/400/300?random=2" alt="科技展览现场照片2" class="img-fluid">
                            <img src="https://picsum.photos/400/300?random=3" alt="科技展览现场照片3" class="img-fluid">
                            <img src="https://picsum.photos/400/300?random=4" alt="科技展览现场照片4" class="img-fluid">
                        </div>
                        <div class="image-count-overlay">+8</div>
                    </div>
                    
                    <div class="topic-body">
                        <div class="topic-meta">
                            <span class="topic-category">科技</span>
                            <div class="topic-author">
                                <img src="https://picsum.photos/100/100?random=10" alt="张明" class="author-avatar">
                                <span class="author-name">张明</span>
                            </div>
                            <span>· 2小时前</span>
                        </div>
                        
                        <h3 class="topic-title">2023年国际科技展见闻：AI与元宇宙成为绝对主角</h3>
                        
                        <div class="topic-content">
                            刚刚结束的2023年国际科技展汇集了全球最前沿的技术创新，AI与元宇宙相关产品占据了展览的半壁江山。本文分享一些令人印象深刻的技术突破和行业趋势观察，包括生成式AI的最新应用、元宇宙硬件的突破性进展，以及这些技术将如何改变我们的生活和工作方式...
                        </div>
                        
                        <div class="topic-stats">
                            <div class="topic-stat">
                                <i class="far fa-eye"></i> 5.2k
                            </div>
                            <div class="topic-stat">
                                <i class="far fa-comment"></i> 128
                            </div>
                            <div class="topic-stat">
                                <i class="far fa-bookmark"></i> 356
                            </div>
                        </div>
                    </div>
                    
                    <div class="topic-footer">
                        <div class="topic-actions">
                            <div class="topic-action liked">
                                <i class="fas fa-heart"></i> 1.2k
                            </div>
                            <div class="topic-action">
                                <i class="far fa-comment"></i> 评论
                            </div>
                            <div class="topic-action saved">
                                <i class="fas fa-bookmark"></i> 已收藏
                            </div>
                            <div class="topic-action">
                                <i class="fas fa-share-alt"></i> 分享
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- 热门话题区（标准卡片布局） -->
        <section class="mb-8">
            <h2 class="section-title">热门话题</h2>
            <div class="row layout-standard">
                <!-- 带单图的话题 -->
                <div class="col-md-6">
                    <div class="topic-card">
                        <div class="topic-images">
                            <img src="https://picsum.photos/600/300?random=10" alt="远程工作场景" class="single-image img-fluid">
                        </div>
                        
                        <div class="topic-body">
                            <div class="topic-meta">
                                <span class="topic-category">职场</span>
                                <div class="topic-author">
                                    <img src="https://picsum.photos/100/100?random=20" alt="李娜" class="author-avatar">
                                    <span class="author-name">李娜</span>
                                </div>
                                <span>· 昨天</span>
                            </div>
                            
                            <h3 class="topic-title">远程工作三年经验总结：如何保持高效和工作生活平衡</h3>
                            
                            <div class="topic-content">
                                从疫情开始至今，我已经远程工作了三年时间。从最初的混乱到现在的有序高效，积累了一些经验想和大家分享。包括如何建立工作边界、保持团队协作效率、避免 burnout 以及提升居家工作体验的实用工具推荐...
                            </div>
                        </div>
                        
                        <div class="topic-footer">
                            <div class="topic-stats">
                                <div class="topic-stat">
                                    <i class="far fa-eye"></i> 3.8k
                                </div>
                                <div class="topic-stat">
                                    <i class="far fa-comment"></i> 94
                                </div>
                            </div>
                            
                            <div class="topic-actions">
                                <div class="topic-action">
                                    <i class="far fa-heart"></i> 876
                                </div>
                                <div class="topic-action">
                                    <i class="far fa-bookmark"></i> 收藏
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 无图话题 -->
                <div class="col-md-6">
                    <div class="topic-card">
                        <div class="topic-body">
                            <div class="topic-meta">
                                <span class="topic-category">财经</span>
                                <div class="topic-author">
                                    <img src="https://picsum.photos/100/100?random=30" alt="王建国" class="author-avatar">
                                    <span class="author-name">王建国</span>
                                </div>
                                <span>· 3天前</span>
                            </div>
                            
                            <h3 class="topic-title">2023年副业收入指南：适合上班族的5种低风险增收方式</h3>
                            
                            <div class="topic-content">
                                在经济不确定性增加的当下，拥有一份副业收入能带来更多安全感。本文分享5种适合上班族的低风险副业，不需要投入大量时间，也不需要专业技能，普通人也能轻松上手。包括内容创作、知识付费、电商分销等方向的具体操作方法和注意事项...
                            </div>
                        </div>
                        
                        <div class="topic-footer">
                            <div class="topic-stats">
                                <div class="topic-stat">
                                    <i class="far fa-eye"></i> 6.4k
                                </div>
                                <div class="topic-stat">
                                    <i class="far fa-comment"></i> 215
                                </div>
                            </div>
                            
                            <div class="topic-actions">
                                <div class="topic-action liked">
                                    <i class="fas fa-heart"></i> 1.5k
                                </div>
                                <div class="topic-action">
                                    <i class="far fa-bookmark"></i> 收藏
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- 最新话题区（紧凑列表布局） -->
        <section class="mb-8">
            <h2 class="section-title">最新话题</h2>
            <div class="layout-compact">
                <!-- 带单图的紧凑话题 -->
                <div class="topic-card">
                    <div class="topic-images">
                        <img src="https://picsum.photos/300/300?random=40" alt="健康饮食" class="single-image img-fluid">
                    </div>
                    
                    <div class="topic-content-container">
                        <div class="topic-body">
                            <div class="topic-meta">
                                <span class="topic-category">健康</span>
                                <div class="topic-author">
                                    <img src="https://picsum.photos/100/100?random=41" alt="刘芳" class="author-avatar">
                                    <span class="author-name">刘芳</span>
                                </div>
                                <span>· 3小时前</span>
                            </div>
                            
                            <h3 class="topic-title">忙碌上班族的健康饮食方案：15分钟快手营养餐</h3>
                            
                            <div class="topic-content">
                                分享几个适合上班族的健康快手餐做法，15分钟就能搞定，营养均衡又美味，再也不用依赖外卖了...
                            </div>
                        </div>
                        
                        <div class="topic-footer">
                            <div class="topic-stats">
                                <div class="topic-stat">
                                    <i class="far fa-eye"></i> 782
                                </div>
                                <div class="topic-stat">
                                    <i class="far fa-comment"></i> 36
                                </div>
                            </div>
                            
                            <div class="topic-actions">
                                <div class="topic-action">
                                    <i class="far fa-heart"></i> 145
                                </div>
                                <div class="topic-action">
                                    <i class="far fa-bookmark"></i> 收藏
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 带多图的紧凑话题 -->
                <div class="topic-card">
                    <div class="topic-images">
                        <div class="multi-image">
                            <img src="https://picsum.photos/300/300?random=50" alt="旅行照片1" class="img-fluid">
                            <img src="https://picsum.photos/300/300?random=51" alt="旅行照片2" class="img-fluid">
                        </div>
                    </div>
                    
                    <div class="topic-content-container">
                        <div class="topic-body">
                            <div class="topic-meta">
                                <span class="topic-category">旅行</span>
                                <div class="topic-author">
                                    <img src="https://picsum.photos/100/100?random=52" alt="赵远" class="author-avatar">
                                    <span class="author-name">赵远</span>
                                </div>
                                <span>· 5小时前</span>
                            </div>
                            
                            <h3 class="topic-title">周末微旅行推荐：城市周边值得一去的小众景点</h3>
                            
                            <div class="topic-content">
                                整理了几个城市周边的小众旅行地，适合周末短途出行，人少景美，附上详细攻略和拍照指南...
                            </div>
                        </div>
                        
                        <div class="topic-footer">
                            <div class="topic-stats">
                                <div class="topic-stat">
                                    <i class="far fa-eye"></i> 1.2k
                                </div>
                                <div class="topic-stat">
                                    <i class="far fa-comment"></i> 58
                                </div>
                            </div>
                            
                            <div class="topic-actions">
                                <div class="topic-action">
                                    <i class="far fa-heart"></i> 231
                                </div>
                                <div class="topic-action">
                                    <i class="far fa-bookmark"></i> 收藏
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 无图的紧凑话题 -->
                <div class="topic-card">
                    <div class="topic-content-container">
                        <div class="topic-body">
                            <div class="topic-meta">
                                <span class="topic-category">学习</span>
                                <div class="topic-author">
                                    <img src="https://picsum.photos/100/100?random=60" alt="陈明" class="author-avatar">
                                    <span class="author-name">陈明</span>
                                </div>
                                <span>· 8小时前</span>
                            </div>
                            
                            <h3 class="topic-title">如何有效提升专注力？亲测有效的7个方法</h3>
                            
                            <div class="topic-content">
                                现代社会干扰太多，专注力越来越稀缺。分享7个经过我亲身实践有效的提升专注力方法，从环境调整到习惯培养，帮你摆脱分心困扰...
                            </div>
                        </div>
                        
                        <div class="topic-footer">
                            <div class="topic-stats">
                                <div class="topic-stat">
                                    <i class="far fa-eye"></i> 2.1k
                                </div>
                                <div class="topic-stat">
                                    <i class="far fa-comment"></i> 87
                                </div>
                            </div>
                            
                            <div class="topic-actions">
                                <div class="topic-action liked">
                                    <i class="fas fa-heart"></i> 452
                                </div>
                                <div class="topic-action saved">
                                    <i class="fas fa-bookmark"></i> 已收藏
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- 推荐话题区（网格布局） -->
        <section>
            <h2 class="section-title">为你推荐</h2>
            <div class="layout-grid">
                <!-- 带单图的网格话题 -->
                <div class="topic-card">
                    <div class="topic-images">
                        <img src="https://picsum.photos/400/300?random=70" alt="摄影作品" class="single-image img-fluid">
                    </div>
                    
                    <div class="topic-body">
                        <div class="topic-meta">
                            <span class="topic-category">摄影</span>
                            <div class="topic-author">
                                <img src="https://picsum.photos/100/100?random=71" alt="孙艺" class="author-avatar">
                                <span class="author-name">孙艺</span>
                            </div>
                        </div>
                        
                        <h3 class="topic-title">手机摄影进阶技巧：拍出专业感照片的5个秘诀</h3>
                        
                        <div class="topic-content">
                            不需要专业相机，手机也能拍出令人惊艳的照片。分享几个实用的手机摄影技巧...
                        </div>
                        
                        <div class="topic-stats">
                            <div class="topic-stat">
                                <i class="far fa-eye"></i> 1.5k
                            </div>
                            <div class="topic-stat">
                                <i class="far fa-comment"></i> 42
                            </div>
                        </div>
                    </div>
                    
                    <div class="topic-footer">
                        <div class="topic-actions">
                            <div class="topic-action">
                                <i class="far fa-heart"></i> 289
                            </div>
                            <div class="topic-action">
                                <i class="far fa-bookmark"></i> 收藏
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 带多图的网格话题 -->
                <div class="topic-card">
                    <div class="topic-images">
                        <div class="multi-image">
                            <img src="https://picsum.photos/400/300?random=80" alt="美食照片1" class="img-fluid">
                            <img src="https://picsum.photos/400/300?random=81" alt="美食照片2" class="img-fluid">
                            <img src="https://picsum.photos/400/300?random=82" alt="美食照片3" class="img-fluid">
                            <img src="https://picsum.photos/400/300?random=83" alt="美食照片4" class="img-fluid">
                        </div>
                    </div>
                    
                    <div class="topic-body">
                        <div class="topic-meta">
                            <span class="topic-category">美食</span>
                            <div class="topic-author">
                                <img src="https://picsum.photos/100/100?random=84" alt="林小厨" class="author-avatar">
                                <span class="author-name">林小厨</span>
                            </div>
                        </div>
                        
                        <h3 class="topic-title">新手也能做好的4道家常菜，简单美味又下饭</h3>
                        
                        <div class="topic-content">
                            分享4道适合厨房新手的家常菜做法，步骤简单，成功率高，味道却不输餐馆...
                        </div>
                        
                        <div class="topic-stats">
                            <div class="topic-stat">
                                <i class="far fa-eye"></i> 2.3k
                            </div>
                            <div class="topic-stat">
                                <i class="far fa-comment"></i> 67
                            </div>
                        </div>
                    </div>
                    
                    <div class="topic-footer">
                        <div class="topic-actions">
                            <div class="topic-action liked">
                                <i class="fas fa-heart"></i> 521
                            </div>
                            <div class="topic-action">
                                <i class="far fa-bookmark"></i> 收藏
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 无图的网格话题 -->
                <div class="topic-card">
                    <div class="topic-body">
                        <div class="topic-meta">
                            <span class="topic-category">书籍</span>
                            <div class="topic-author">
                                <img src="https://picsum.photos/100/100?random=90" alt="周读" class="author-avatar">
                                <span class="author-name">周读</span>
                            </div>
                        </div>
                        
                        <h3 class="topic-title">2023年上半年读完的10本书，推荐给同样爱读书的你</h3>
                        
                        <div class="topic-content">
                            整理了2023年上半年读完的10本好书，涵盖文学、历史、心理学和商业等领域...
                        </div>
                        
                        <div class="topic-stats">
                            <div class="topic-stat">
                                <i class="far fa-eye"></i> 1.8k
                            </div>
                            <div class="topic-stat">
                                <i class="far fa-comment"></i> 93
                            </div>
                        </div>
                    </div>
                    
                    <div class="topic-footer">
                        <div class="topic-actions">
                            <div class="topic-action">
                                <i class="far fa-heart"></i> 347
                            </div>
                            <div class="topic-action saved">
                                <i class="fas fa-bookmark"></i> 已收藏
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        // 话题交互功能
        document.addEventListener('DOMContentLoaded', function() {
            // 点赞功能
            const likeButtons = document.querySelectorAll('.topic-action:has(.far.fa-heart), .topic-action:has(.fas.fa-heart)');
            likeButtons.forEach(btn => {
                btn.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    const countText = this.childNodes[2].textContent.trim();
                    let count = parseInt(countText);
                    
                    if (icon.classList.contains('far')) {
                        // 点赞
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.classList.add('liked');
                        this.innerHTML = `<i class="fas fa-heart"></i> ${count + 1}`;
                        showToast('点赞成功');
                    } else {
                        // 取消点赞
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.classList.remove('liked');
                        this.innerHTML = `<i class="far fa-heart"></i> ${count - 1}`;
                        showToast('已取消点赞');
                    }
                });
            });
            
            // 收藏功能
            const saveButtons = document.querySelectorAll('.topic-action:has(.far.fa-bookmark), .topic-action:has(.fas.fa-bookmark)');
            saveButtons.forEach(btn => {
                btn.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    
                    if (icon.classList.contains('far')) {
                        // 收藏
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.classList.add('saved');
                        this.innerHTML = `<i class="fas fa-bookmark"></i> 已收藏`;
                        showToast('收藏成功');
                    } else {
                        // 取消收藏
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.classList.remove('saved');
                        this.innerHTML = `<i class="far fa-bookmark"></i> 收藏`;
                        showToast('已取消收藏');
                    }
                });
            });
            
            // 评论按钮功能
            const commentButtons = document.querySelectorAll('.topic-action:has(.far.fa-comment)');
            commentButtons.forEach(btn => {
                btn.addEventListener('click', function() {
                    const topicTitle = this.closest('.topic-card').querySelector('.topic-title').textContent;
                    showToast(`打开"${topicTitle}"的评论区`);
                    // 实际应用中这里会跳转到评论区或打开评论弹窗
                });
            });
            
            // 分享按钮功能
            const shareButtons = document.querySelectorAll('.topic-action:has(.fas.fa-share-alt)');
            shareButtons.forEach(btn => {
                btn.addEventListener('click', function() {
                    const topicTitle = this.closest('.topic-card').querySelector('.topic-title').textContent;
                    showToast(`分享"${topicTitle}"到社交媒体`);
                    // 实际应用中这里会打开分享选项
                });
            });
            
            // 显示/隐藏更多回复功能
            const showMoreButtons = document.querySelectorAll('.show-more');
            showMoreButtons.forEach(btn => {
                btn.addEventListener('click', function() {
                    if (this.textContent.includes('显示更多')) {
                        this.textContent = '显示更少';
                        // 实际应用中这里会显示更多内容
                    } else {
                        this.textContent = '显示更多';
                        // 实际应用中这里会隐藏部分内容
                    }
                });
            });
        });
        
       
    </script>
</body>
</html>
    
